<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="js/jquery.js"></script>
    <script type="text/javascript">
        function getMsg(){
            $.ajax({
                url:"http://localhost:8080/getMsg",
                type:"get",
                success:function (msg){
                    alert(msg)
                }
            })
        }
        function delMsg(){
            $.ajax({
                url:"http://localhost:8080/delMsg",
                type:"delete",
                success:function (msg){
                    alert(msg)
                }
            })
        }
    </script>
</head>
<body>
<input type="button" value="获取信息" onclick="getMsg()">
<input type="button" value="删除信息" onclick="delMsg()">
</body>
</html>